﻿using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Data;

namespace VSWClient.Pages
{
    public class visibilityconvertor : IValueConverter

    {
        object IValueConverter.Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            bool reValue = System.Convert.ToBoolean(value);
            if (reValue == true)
            {
                return System.Windows.Visibility.Visible;
            }
            else return System.Windows.Visibility.Collapsed;

        }

        object IValueConverter.ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
